package com.example.tse.rbhttpservice.service.common.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.common.model.CommonGetADList;
/**
* 获取某位置的广告，用于可能需要的地方（首页除外）
* @author wliu
* edit tse
*/
public class CommonGetADListResponse extends RudderResponse{

private List<CommonGetADList> getADList = new ArrayList<CommonGetADList>();


/**
* @return getADList
*/
public List<CommonGetADList> getGetADList() {
return this.getADList;
}

/**
* @return getADList
*/
public void setGetADList(List<CommonGetADList> getADList) {
this.getADList = getADList;
}
/**
methodName    GetADList
type          List<CommonGetADList>
name          getADList
defaultType   new ArrayList<CommonGetADList>()
*/

/**


    private static void filterFor(CommonGetADList common) {
        if (common.getBannerId() == null) {
            common.setBannerId("");
        }
        if (common.getPosition() == null) {
            common.setPosition("");
        }
        if (common.getImg() == null) {
            common.setImg("");
        }
        if (common.getBannerType() == null) {
            common.setBannerType("");
        }
        if (common.getTarget() == null) {
            common.setTarget("");
        }
    }

    public static void filter(CommonGetADListResponse common) {
        if (common.getGetADList() == null) {
            common.setGetADList(new ArrayList<CommonGetADList>());
        } else {
            for (CommonGetADList item : common.getGetADList()) {
                filterFor(item);
            }
        }
    }

*/

}
